﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>signalR客户端</title>
    <script src="signalr.min.js"></script>
    <script src="/jquery-1.10.2.min.js"></script>
</head>
<body>
    <script>
        $(document).ready(function () {
            var connection = new signalR.HubConnectionBuilder().withUrl("/MessageHub").build();
            connection.on("ReceiveMessage", function (message) {
                console.log(message.toString());
            });
            connection.start().then(function (data) {
                connection.invoke("ReceiveMessage", "123456", {
                    "MessageType": 14, "Content": "http://192.168.1.247:20023/Convenient.html#/,100,200,600,480"
                });
            }).catch(function (err) {
                return console.error(err.toString());
            });
        });
    </script>
</body>
</html>